package com.example.demo.Service;

import com.example.demo.Mapper.MessageMapper;
import com.example.demo.Model.MessageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MessageService {
    @Autowired
    MessageMapper messageMapper;
    public List<MessageInfo> getList() {
        return messageMapper.getList();
    }

    public void add(MessageInfo m) {
        messageMapper.insertInfo(m);
    }
}
